const express = require('express');

const app = express()
    // 引入并注册14的中间件

const bodyParser = require('./14.custom-body-parser')
    // 自定义解析表单的中间件
app.use(bodyParser)

app.post('/user', (req, res) => {
    res.send(req.body)
})

app.listen(11, () => {
    console.log('express running is running at http://127.0.0.1:11');
})